package com.tensquare.qa.client;
/*
 *ClassName:LabelClient
 *Description:调用基础微服务的标签的接口
 *@author:可爱的大鸭子
 */

import com.tensquare.qa.client.impl.LabelClientImpl;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value="tensquare-base",fallback = LabelClientImpl.class)   //指定要使用的模块名，配置熔断器类
public interface LabelClient {
    @RequestMapping(value="/label/{id}", method = RequestMethod.GET)    //地址映射必须和被调用者的地址相同
    public Result findById(@PathVariable("id") String id);
}
